This function returns a number indicating the number of objects counted.

On error, this function will raise a \code{HyperDexClientException} describing
the error.
